<?php   
        $seo_title=$this->ts_functions->getsettings('sitetitle','text'); 
        $seodescr       =$this->ts_functions->getsettings('seodescr','text');
		$seoauthor      = $this->ts_functions->getsettings('siteauthor','text');
		$ogImage        =  $this->ts_functions->getsettings('logo','url');
		$ogUrl              =  $basepath;
		$meta_keywords= $this->ts_functions->getsettings('metatags','text');
		if(isset($page_seo)){
		 $seo_title      =($page_seo['seo_title']!= '') ? $page_seo['seo_title']  : $seo_title;
		 $seodescr = ($page_seo['seodescr']!= '') ? $page_seo['seodescr']  : $seodescr;
		 $meta_keywords = ($page_seo['seo_keywords']!= '') ? $page_seo['seo_keywords']  : $meta_keywords;
		 $ogImage = ($page_seo['seo_Image']!= '') ? $page_seo['seo_Image']  : $ogImage;
	    }
		if(isset($single_item_page)){
			
		  $seo_title      =$productdetails[0]['prod_name'];
          $seodescr       =substr(strip_tags($productdetails[0]['prod_description']),0,150).' ...';
		  if($productdetails[0]['prod_image']!=''){
		   $ogImage = base_url().'repo/images/'.$productdetails[0]['prod_image'];
		  }		  
		  $ogUrl          =  $basepath.'item/'.$productName.$productdetails[0]['prod_uniqid'];
		  $meta_keywords  = $productdetails[0]['prod_tags'];
		}
?>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->

<head>
    <title><?php echo $seo_title;?></title>
	<meta content="<?php echo $seo_title;?>" property="og:title">
	<meta content="website" property="og:type">
	<meta content="<?php echo $ogUrl;?>" property="og:url">
	<meta content="<?php echo $ogImage;?>" property="og:image">
	<meta content="<?php echo $seodescr;?>" property="og:description">
	<meta content="<?php echo $this->ts_functions->getsettings('sitename','text');?>" property="og:site_name">
	<meta name="description"  content="<?php echo $seodescr;?>"/>
	<meta name="keywords" content="<?php echo $meta_keywords;?>">
	<meta name="author" content="<?php echo $seoauthor;?>"/>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta name="MobileOptimized" content="320">
    <!--srart theme style -->
    <link href="<?php echo $basepath;?>themes/themeone/css/bootstrap.css" rel="stylesheet" type="text/css">
    <link href="<?php echo $basepath;?>themes/themeone/css/font-awesome.css" rel="stylesheet" type="text/css">
    <link href="<?php echo $basepath;?>themes/themeone/css/flaticon.css" rel="stylesheet" type="text/css">
    <link href="<?php echo $basepath;?>themes/themeone/css/animate.css" rel="stylesheet" type="text/css">
    <link href="<?php echo $basepath;?>themes/themeone/css/fonts.css" rel="stylesheet" type="text/css">
    <link href="<?php echo $basepath;?>themes/themeone/js/plugins/owl/owl.carousel1.css" rel="stylesheet" type="text/css">
	
	<?php if(isset($single_item_page)){?>
    <link href="<?php echo $basepath;?>themes/themeone/css/sceen_popup.css" rel="stylesheet" type="text/css">
	<?php } ?>
	
    <link href="<?php echo $basepath;?>themes/themeone/css/style.css?<?php echo date('his'); ?>" rel="stylesheet" type="text/css">
	<link href="<?php echo $basepath;?>themes/themeone/css/responsive.css?<?php echo date('his'); ?>" rel="stylesheet" type="text/css">
	<link href="<?php echo $basepath;?>themes/themeone/css/color.css?<?php echo date('his'); ?>" rel="stylesheet" type="text/css">
    <!-- end theme style -->
    <!-- favicon links -->
   <link rel="shortcut icon" type="image/png" href="<?php echo $this->ts_functions->getsettings('favicon','url');?>" />
   <style name="custom">
    <?php echo $this->ts_functions->getsettings('customcss','text') ?>
   </style>
<!-- Version 4.3 -->
</head>